package com.charles.springcloud.alibaba.service;

import com.charles.common.CommonResult;
import com.charles.common.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 风中灵劲草
 * @Date: 2021/08/28/16:46
 * @Description:
 */
@FeignClient(value = "nacos-payment-provider" , fallback = PaymentFallback.class)
public interface PaymentService {

    @GetMapping("/getPayment/{id}")
    CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);
}